<template>
  <div id="microo-app" class="u-prim-text">
    <keep-alive include="">
      <router-view :key="$route.fullPath" />
    </keep-alive>
  </div>
</template>
<script>
import { mapState, mapActions } from 'vuex';
// import { getUserProfile } from '@/api/system/user';
// import { getRouters } from '@/api/menu';
// import { globalRegister } from '../global-state/src';
// import store from './store';
export default {
  computed: {
    // 通过global获取user的信息
    ...mapState('global', {
      user: state => state.user,
    }),
  },
  mounted() {},
  methods: {
    ...mapActions('global', ['setGlobalState']),
  },
};
</script>

<style lang="scss">
#microo-app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
